
<?php
$username = $this->formText('username', '', array('style' => 'width: 150px'));
$password = $this->formPassword('password', '', array('style' => 'width: 150px'));
$btnButton = $this->formSubmit('submit', 'Login');
?>
<script src="<?php echo $this->baseUrl();?>/js/jquery.js"></script>
<link type="text/css" href="<?php $this->baseUrl()?>/css/admin.css" rel="stylesheet" />
<script  type="text/javascript" >
	function validation()
	{
		var i = 0;
		$('#appForm input[type!=submit]').each(function(){
			if ($(this).val()=='')
			{
				$(this).next().show();
				i++;
			}
			else
			{
				$(this).next().hide();
			}	
		});
		if (i==0)
		{
			return true;
		}
		else 
			return false;
	}
</script>
<body style="background-color: #f3f4ed;" >
<div style="margin:200px 600px;padding-left:20px;padding-top:20px;padding-bottom:20px;-moz-border-radius:4px; -webkit-border-radius:4px; border-radius:10px 10px 10px 10px;width: 400px;background-color: white;" >
	<center><h1 style="color:#5D8E01; " >Administrator Login</h1></center>
	<?php if ($this->mess!='') { ?>
	<center><label style="background-color:#f5f7c1; padding:5px; margin: 5px;-moz-border-radius:4px; -webkit-border-radius:4px; border-radius:5px 5px 5px 5px; " ><?php echo $this->mess;?></label></center>
	<br/><?php }?>
	<form id="appForm" action="" method="POST" enctype="multipart/form-data">
	    Username: <?php echo $username; ?> <label style="padding-left:5px;font-style: italic;color: red;display: none;" >Username is not emtry!</label>
	    <br></br>
	    Password : <?php echo $password; ?><label style="padding-left:5px ;font-style: italic;color: red;;display: none;" >Password is not emtry!</label>
	    <br></br>
	    <center><input type="submit" class="button" onclick="return validation()" value="Login"></center>
	</form>
</div>
</body>